<?php

/**
* This is the model class for table "gold_parsed".
*/

require_once dirname(__FILE__).'/base/GoldRateBase.php';
class GoldRate extends GoldRateBase
{
    /**
    * find latest gold prices
    * 
    */
    public function findLatestPrice(){
        return $this->findAll(array(
            'condition'=>'date=:date',
            'order'=>'pos',
            'params'=>array(':date'=>date('Y-m-d'))
        ));
    }
}